#ifndef LIB_MARKDOWN_PARSE_H
#define LIB_MARKDOWN_PARSE_H
extern "C"{

}
#include <fstream>
#include <iostream>
#include <sstream>
#include <map>

using namespace std;

class markdown_parse{
public:
     markdown_parse();
     ~markdown_parse();
     //parsed markdown file to get the TOC and the all string
     bool parse_file(stringstream* md_str_stream);
     //parsed markdown line to the html line
     bool parse_string(string md_str,string* parsed_string,int* int_title_level);

     string strim_string(string before);

     string parsed_all_string;
     string catalog;
};

#endif // LIB_MARKDOWN_PARSE_H
